package com.bilgeadam.customtags;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**
 *
 * @author Bora SAYINER
 * @since Jan 18, 2015 7:29:47 PM
 * @version 1.0
 */
public class MenuTag extends SimpleTagSupport {

	@Override
	public void doTag() throws JspException, IOException {
		JspWriter writer = getJspContext().getOut();
		writer.print("<div class='pure-menu pure-menu-open pure-menu-horizontal'>");
		writer.print("<ul>");
		getJspBody().invoke(null);
		writer.print("</ul>");
		writer.print("</div>");
	}

}
